package com.dingding.sync.repository.entity;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * @author: zhangyanan
 * @Date: 2019-05-01 13:55
 * @Description:
 */
@Setter
@Getter
@ToString
@Table(name = "goods")
public class Goods {
    /**
     * 主键ID
     */
    @Id
    private Integer id;

    /**
     * 商品名称
     */
    private String title;
    /**
     * 库存
     */
    private Integer inventory;
    /**
     * 商品价格
     */
    private Integer price;
    /**
     * 商品描述
     */
    private String description;
    /**
     * 是否免邮费
     */
    @Column(name="is_free_shipping")
    private String isFreeShipping;
    /**
     * 是否热销
     */
    @Column(name="is_hot")
    private String isHot;
    /**
     * 图片链接
     */
    @Column(name="img_url")
    private String imgUrl;
    /**
     * 创建时间
     */
    @Column(name="create_time")
    private String createTime;


}
